<page-header [title]="pageTitle" [autoBreadcrumb]="false" [action]="action">
  <ng-template #action> </ng-template>
</page-header>

<div class="ngx-alain__page-content-nz-card">
  <nz-card [nzBordered]="false">
    <sf
      #sf
      mode="search"
      [schema]="schemaData.search"
      [formData]="tableParams"
      (formSubmit)="searchSubmit(st, $event)"
      (formReset)="st.reset(tableParams)"
      class="search-form"
      [button]="'none'"
    >
      <nz-form-item class="sf-btns">
        <nz-form-control class="ant-form-item-control-wrapper">
          <div class="ant-form-item-control">
            <button
              type="submit"
              nz-button
              [nzType]="'primary'"
              [nzLoading]="st.stloading"
            >
              查询
            </button>
          </div>
        </nz-form-control>
      </nz-form-item>
      <nz-form-control class="ant-form-item-control-wrapper">
        <div class="ant-form-item-control">
          <button nz-button (click)="appCase.exportXlsFromSt(st)">
            导出
          </button>
        </div>
      </nz-form-control>
    </sf>
  </nz-card>

  <nz-card [nzBordered]="false">
    <st
      #st
      [data]="dataSource.url"
      [columns]="tableData.col"
      [req]="tableReq"
      (change)="stChange($event)"
    ></st>
  </nz-card>
</div>
